#include<bits/stdc++.h>
using namespace std;
const int M = 100000;
int n;
int a[100005];
int cnt[100005];
signed main(){
	freopen("duel.in","r",stdin);
	freopen("duel.out","w",stdout);
	//freopen("/home/csps/duel4.in","r",stdin);
	ios::sync_with_stdio(0);
	cin.tie(0);cout.tie(0);
	cin >> n;
	//cout << " " << n << endl;
	for(int i = 1;i<=n;i++)cin >> a[i];
	for(int i = 1;i<=n;i++)cnt[a[i]]++;
	int sum = 0;
	for(int i = 1;i<=M;i++){
		sum-=min(sum,cnt[i]);
		sum+=cnt[i];
	}
	cout << sum << endl;
	return 0;
}
/*
g++ duel.cpp -o qwq -std=c++14 -fsanitize=address,undefined
*/